@import '~@common/css/_variables.scss';

.tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 15px 0;

  .name {
    padding: 7px 20px;
    font-size: 14px;
    line-height: 1;
    color: #373737;
    cursor: pointer;
    border: 1px solid #d8d8d8;
    border-radius: 30px;

    &:hover {
      background-color: #f2f2f2;
    }

    span {
      display: inline-block;
      font-size: 14px;
      transform: rotate(180deg);
    }
  }

  ul {
    display: flex;

    li {
      position: relative;
      padding: 4px 10px;
      font-size: 12px;
      color: #676767;
      cursor: pointer;

      &:hover {
        color: #373737;
      }

      &::before {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 15px;
        content: '';
      }

      &.active {
        color: $color;
        border-radius: 10px;

        &::before {
          background-color: $color;
          opacity: 0.08;
        }

        &:hover {
          &::before {
            background-color: $color;
            opacity: 0.08;
          }
        }
      }
    }
  }
}
